package demo2;

import java.util.ArrayList;

public class Test1 {
    public static void main(String[] args) {
        ArrayList<Character> str = new ArrayList<>();
        String s1 = "welcome to shanxi";
        String s2 = "come";
        for (int i = 0; i < s1.length(); i++) {
                char ch = s1.charAt(i);
                if (!(s2.contains(ch+""))) {
                    str.add(ch);
                }
        }
        for (int i = 0; i < str.size(); i++) {
            System.out.print(str.get(i));
        }
    }
}
